/**
 * 自定义table组件 满足
 *
 *
 */
import { Table } from "antd";
import React from "react";
import "./index.less";

const CustomTable = (props) => {
  const { columns, list, loading } = props;
  return (
    <div className="table">
      <Table
        className="MutiTable"
        rowKey={(_, key) => key}
        columns={columns}
        dataSource={list}
        loading={loading}
      ></Table>
    </div>
  );
};

export default CustomTable;
